<template>
	<view>
		<u-no-network @disconnected="disconnected" @connected="connected" @retry="retry"></u-no-network>
	</view>
</template>

<script>
	export default {
		methods: {
			disconnected() {
				console.log('disconnected','网络中断');
				uni.hideTabBar({
					animation: true
				})
			},
			connected() {
				console.log('connected','有网络');
				uni.showTabBar({
					animation: true
				})
			},
			retry() {
				console.log('retry');
			}
		},
	}
</script>
<style>
	page {
		background: #211E38;
	}
</style>
<style lang="scss" scoped>
	.u-content {
		padding: 150px 60px 0;
		@include flex(column);
		align-items: center;
		justify-content: center;

		&__circle {
			background-color: $u-success;
			@include flex;
			border-radius: 100px;
			width: 60px;
			height: 60px;
			align-items: center;
			justify-content: center;
		}

		&__normal {
			font-size: 15px;
			color: $u-success;
			margin-top: 15px;
		}
	}
</style>